package com.sigmatrix.h5.auth;

import java.util.Collection;

import com.sigmatrix.h5.entity.v2.DisPermission;
import com.sigmatrix.h5.entity.v2.DisRole;

/**
 * 
 * 用户登陆会话。
 * 
 * @author wei.wang
 *
 */
public class LoginSession {

	/**
	 * 权限
	 */
	private Collection<DisPermission> permissions;
	
	/**
	 * 角色
	 */
	private Collection<DisRole> roles;
	
	/**
	 * 用户登陆的基本信息
	 */
	private AuthenticationInfo info;
	
	/**
	 * token
	 */
	private String token;
	
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public Collection<DisPermission> getPermissions() {
		return permissions;
	}
	public void setPermissions(Collection<DisPermission> permissions) {
		this.permissions = permissions;
	}
	public Collection<DisRole> getRoles() {
		return roles;
	}
	public void setRoles(Collection<DisRole> roles) {
		this.roles = roles;
	}
	public AuthenticationInfo getInfo() {
		return info;
	}
	public void setInfo(AuthenticationInfo info) {
		this.info = info;
	}
	
}
